﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Pager.ascx.cs" Inherits="Emporium_Web.Controls.Pager" %>

<table id="pagerContainer" runat="server" cellspacing="0" cellpadding="0" width="100%"
    border="0" visible="true">
    <tr>
        <td id="tdFooterDisplay" runat="server" height="5px">
            <asp:Label ID="lblCurrentPageNumber" runat="server" Visible="False"></asp:Label>
        </td>
    </tr>
    <tr>
        <td>
            <asp:LinkButton ID="lnk_First" runat="server" CausesValidation="false" CommandName="First"
                OnCommand="lnk_Command" Visible="false">
                Inicio
            </asp:LinkButton>
            &nbsp;
            <asp:LinkButton ID="lnkPrev" runat="server" CausesValidation="false" CommandName="Previous"
                OnCommand="lnk_Command" Visible="false">
                Anterior
            </asp:LinkButton>
            &nbsp;&nbsp;
            <asp:Label ID="lblPage" runat="server" />&nbsp;<asp:TextBox ID="txtPageNumber" runat="server"
                Width="20" ValidationGroup="PagerControls"></asp:TextBox>&nbsp;<asp:Label ID="lblOf"
                    runat="server"></asp:Label>&nbsp;<asp:Label ID="lblTotalPages" runat="server"></asp:Label>

            <asp:Button ID="btnGo" runat="server" OnClick="btnGo_Click" ValidationGroup="PagerControls" />

            <asp:RangeValidator Text="*" ControlToValidate="txtPageNumber" ID="RegularExpressionValidator1"
                runat="server" ValidationGroup="PagerControls" MinimumValue="1" MaximumValue="30000"
                Display="Dynamic" Type="Integer"></asp:RangeValidator>
            &nbsp;&nbsp;
            <asp:LinkButton ID="lnkNext" runat="server" CommandName="Next" CausesValidation="false"
                OnCommand="lnk_Command">Siguiente</asp:LinkButton>
            &nbsp;
            <asp:LinkButton ID="lnkLast" runat="server" CommandName="Last" CausesValidation="false"
                OnCommand="lnk_Command">Fin</asp:LinkButton>
        </td>
    </tr>
</table>
